package com.maket.scxx.domain;

import com.ruoyi.common.core.web.domain.BaseEntity;

import java.io.Serializable;
import java.util.Date;

/**
 * 计量单位表
 * @TableName jldw_measurement_unit
 */
public class JldwMeasurementUnit extends BaseEntity {
    /**
     * 单位编码
     */
    private String dwCode;

    /**
     * 单位名称
     */
    private String dwName;

    /**
     * 单位类型编码
     */
    private String dwTypecode;

    /**
     * 单位简写
     */
    private String dwEasy;

    /**
     * 换算单位
     */
    private String dwChange;

    /**
     * 换算比例
     */
    private String changemany;

    /**
     * 创建人
     */
    private String dwCreate;

    /**
     * 创建时间
     */
    private Date dwCreatetime;

    /**
     * 修改时间
     */
    private Date dwUpdatetime;


    private static final long serialVersionUID = 1L;

    /**
     * 单位编码
     */
    public String getDwCode() {
        return dwCode;
    }

    /**
     * 单位编码
     */
    public void setDwCode(String dwCode) {
        this.dwCode = dwCode;
    }

    /**
     * 单位名称
     */
    public String getDwName() {
        return dwName;
    }

    /**
     * 单位名称
     */
    public void setDwName(String dwName) {
        this.dwName = dwName;
    }

    /**
     * 单位类型编码
     */
    public String getDwTypecode() {
        return dwTypecode;
    }

    /**
     * 单位类型编码
     */
    public void setDwTypecode(String dwTypecode) {
        this.dwTypecode = dwTypecode;
    }

    /**
     * 单位简写
     */
    public String getDwEasy() {
        return dwEasy;
    }

    /**
     * 单位简写
     */
    public void setDwEasy(String dwEasy) {
        this.dwEasy = dwEasy;
    }

    /**
     * 换算单位
     */
    public String getDwChange() {
        return dwChange;
    }

    /**
     * 换算单位
     */
    public void setDwChange(String dwChange) {
        this.dwChange = dwChange;
    }

    /**
     * 换算比例
     */
    public String getChangemany() {
        return changemany;
    }

    /**
     * 换算比例
     */
    public void setChangemany(String changemany) {
        this.changemany = changemany;
    }

    /**
     * 创建人
     */
    public String getDwCreate() {
        return dwCreate;
    }

    /**
     * 创建人
     */
    public void setDwCreate(String dwCreate) {
        this.dwCreate = dwCreate;
    }

    /**
     * 创建时间
     */
    public Date getDwCreatetime() {
        return dwCreatetime;
    }

    /**
     * 创建时间
     */
    public void setDwCreatetime(Date dwCreatetime) {
        this.dwCreatetime = dwCreatetime;
    }

    /**
     * 修改时间
     */
    public Date getDwUpdatetime() {
        return dwUpdatetime;
    }

    /**
     * 修改时间
     */
    public void setDwUpdatetime(Date dwUpdatetime) {
        this.dwUpdatetime = dwUpdatetime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        JldwMeasurementUnit other = (JldwMeasurementUnit) that;
        return (this.getDwCode() == null ? other.getDwCode() == null : this.getDwCode().equals(other.getDwCode()))
            && (this.getDwName() == null ? other.getDwName() == null : this.getDwName().equals(other.getDwName()))
            && (this.getDwTypecode() == null ? other.getDwTypecode() == null : this.getDwTypecode().equals(other.getDwTypecode()))
            && (this.getDwEasy() == null ? other.getDwEasy() == null : this.getDwEasy().equals(other.getDwEasy()))
            && (this.getDwChange() == null ? other.getDwChange() == null : this.getDwChange().equals(other.getDwChange()))
            && (this.getChangemany() == null ? other.getChangemany() == null : this.getChangemany().equals(other.getChangemany()))
            && (this.getDwCreate() == null ? other.getDwCreate() == null : this.getDwCreate().equals(other.getDwCreate()))
            && (this.getDwCreatetime() == null ? other.getDwCreatetime() == null : this.getDwCreatetime().equals(other.getDwCreatetime()))
            && (this.getDwUpdatetime() == null ? other.getDwUpdatetime() == null : this.getDwUpdatetime().equals(other.getDwUpdatetime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getDwCode() == null) ? 0 : getDwCode().hashCode());
        result = prime * result + ((getDwName() == null) ? 0 : getDwName().hashCode());
        result = prime * result + ((getDwTypecode() == null) ? 0 : getDwTypecode().hashCode());
        result = prime * result + ((getDwEasy() == null) ? 0 : getDwEasy().hashCode());
        result = prime * result + ((getDwChange() == null) ? 0 : getDwChange().hashCode());
        result = prime * result + ((getChangemany() == null) ? 0 : getChangemany().hashCode());
        result = prime * result + ((getDwCreate() == null) ? 0 : getDwCreate().hashCode());
        result = prime * result + ((getDwCreatetime() == null) ? 0 : getDwCreatetime().hashCode());
        result = prime * result + ((getDwUpdatetime() == null) ? 0 : getDwUpdatetime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", dwCode=").append(dwCode);
        sb.append(", dwName=").append(dwName);
        sb.append(", dwTypecode=").append(dwTypecode);
        sb.append(", dwEasy=").append(dwEasy);
        sb.append(", dwChange=").append(dwChange);
        sb.append(", changemany=").append(changemany);
        sb.append(", dwCreate=").append(dwCreate);
        sb.append(", dwCreatetime=").append(dwCreatetime);
        sb.append(", dwUpdatetime=").append(dwUpdatetime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}